package cn.ronghuanet.org.service.impl;

import cn.ronghuanet.base.service.impl.IBaseServiceImpl;
import cn.ronghuanet.org.domain.Department;
import cn.ronghuanet.org.mapper.DepartmentMapper;
import cn.ronghuanet.org.service.IDepartmentServiceI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(propagation = Propagation.SUPPORTS,readOnly = true)
public class DepartmentServiceImplI extends IBaseServiceImpl<Department> implements IDepartmentServiceI {
    @Autowired
    private DepartmentMapper mapper;

    @Override
    public List<Department> deptTree() {
        return mapper.deptTree();
    }
}
